package index.oop.lesson;

public class instanceOfStudent {
    public static void main(String[] args) {
        Student stu=new Student();
        //创建了一个学生对象  利用这个模版
        stu.setAge(18);
        stu.setId("12");
        stu.setName("yingying");
        System.out.println(stu.getAge());
        System.out.println(stu.getId());
        System.out.println(stu.getName());
        Student stu1=new Student("yingying",20,"42");
        System.out.println(stu1.toString());
    }
}
